import request from '@/utils/request'

// 查询计量详情列表
export function listBaSettleDetail(query) {
  return request({
    url: '/cm/baSettleDetail/list',
    method: 'get',
    params: query
  })
}

// 查询计量详情详细
export function getBaSettleDetail(settleDetailId) {
  return request({
    url: '/cm/baSettleDetail/' + settleDetailId,
    method: 'get'
  })
}

// 新增计量详情
export function addBaSettleDetail(data) {
  return request({
    url: '/cm/baSettleDetail',
    method: 'post',
    data: data
  })
}

// 修改计量详情
export function updateBaSettleDetail(data) {
  return request({
    url: '/cm/baSettleDetail',
    method: 'put',
    data: data
  })
}

// 删除计量详情
export function delBaSettleDetail(settleDetailId) {
  return request({
    url: '/cm/baSettleDetail/' + settleDetailId,
    method: 'delete'
  })
}
